#include <57header.h>

int main(int argc,char*argv[])
{
    int pipe_fd = open("1.pipe", O_RDONLY);

    int file_name_len = 0;
    read(pipe_fd, &file_name_len, sizeof(int));
    char buf[60] = {0};
    read(pipe_fd, buf, file_name_len);
    printf("buf1: %s \n", buf);

    int size = 0;
    read(pipe_fd, &size, sizeof(int));
    printf("size: %d \n", size);


    int str_len = 0;
    read(pipe_fd, &str_len, sizeof(int));
    bzero(buf, sizeof(buf));
    read(pipe_fd, buf, str_len);
    printf("buf3: %s \n", buf);

    close(pipe_fd);
    return 0;
}

